Hive 动态分区

--相关配置

set hive.exec.dynamic.partition=true;

set hive.exec.dynamic.partition.mode=nostrick;

--相关代码

insert overwrite table tmp_ad_algo_user_random_detail_tmp partition(label)

select uid,age,gender,network,...

int(rand() * {n}) as label

from tablename

results matching ""

    No results matching ""